<script>
    var texto = CKEDITOR.replace( 'texto',      {
    enterMode: CKEDITOR.ENTER_P,
    shiftEnterMode  : CKEDITOR.ENTER_BR
});

</script>
<div class="topics form">
	<?php echo $this->Form->create('Topic',array('controller'=>'topics','action'=>'add')); ?>
	<fieldset>
		<?php
			echo $this->Form->input('name',array('label'=>'Titulo do tópico','div'=>array('class'=>'form-group'),'class'=>'form-control'));
			//echo $this->Form->input('status', array('type' => 'text'));
            echo $this->Form->input('user_id', array('type' => 'hidden','value'=> $this->User->id()));
			//echo $this->Form->input('creation_date');
			echo $this->Form->input('community_id', array('type' => 'hidden'));	
		?>
		<label for="texto">Descrição</label>
		<textarea id="texto" class="ckeditor" name="description"></textarea>
		<?php

			echo $this->Form->end(array('label'=>'Criar','class'=>'btn btn-primary'));	
		?>
	</fieldset>
	
</div>
